<!DOCTYPE html>
<html lang="en">

<!-- Head tag -->
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!--Description-->
    
        <meta name="description" content="题目：Normalize.css 和 reset.css 有什么异同？reset.css：让浏览器表现一致  ul(list-style:none)  不管浏览器对某一个元素解释是否一样  自己的项目意愿Normalize.css：让浏览器表现一致  因为所有的浏览器对应ul解释一样的都有点Norm">
    

    <!--Author-->
    
        <meta name="author" content="John Doe">
    

    <!--Open Graph Title-->
    
        <meta property="og:title" content="笔记"/>
    

    <!--Open Graph Description-->
    

    <!--Open Graph Site Name-->
    <meta property="og:site_name" content="Hexo"/>

    <!--Type page-->
    
        <meta property="og:type" content="article" />
    

    <!--Page Cover-->
    

        <meta name="twitter:card" content="summary" />
    

    <!-- Title -->
    
    <title>笔记 - Hexo</title>

    <!-- Bootstrap Core CSS -->
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>

    <!-- Custom CSS -->
    <link rel="stylesheet" href="/css/style.css">

    <!-- Custom Fonts -->
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
    <link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Gallery -->
    <link href="//cdnjs.cloudflare.com/ajax/libs/featherlight/1.3.5/featherlight.min.css" type="text/css" rel="stylesheet" />

    <!-- Google Analytics -->
    


    <!-- favicon -->
    
	
</head>


<body>

    <!-- Menu -->
    <!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">逐风</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                
                    <li>
                        <a href="/">
                            
                                Home
                            
                        </a>
                    </li>
                
                    <li>
                        <a href="/archives">
                            
                                Archives
                            
                        </a>
                    </li>
                
                    <li>
                        <a href="/tags">
                            
                                Tags
                            
                        </a>
                    </li>
                
                    <li>
                        <a href="/categories">
                            
                                Categories
                            
                        </a>
                    </li>
                
                    <li>
                        <a href="https://github.com/klugjo/hexo-theme-clean-blog">
                            
                                <i class="fa fa-github fa-stack-2x"></i>
                            
                        </a>
                    </li>
                
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>

    <!-- Main Content -->
    <!-- Page Header -->
<!-- Set your background image for this header in your post front-matter: cover -->

<header class="intro-header" style="background-image: url('http://www.codeblocq.com/assets/projects/hexo-theme-clean-blog/img/home-bg.jpg')">
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <div class="post-heading">
                    <h1>笔记</h1>
                    
                    <span class="meta">
                        <!-- Date and Author -->
                        
                        
                            2017-09-01
                        
                    </span>
                </div>
            </div>
        </div>
    </div>
</header>

<!-- Post Content -->
<article>
    <div class="container">
        <div class="row">

            <!-- Tags and categories -->
           

            <!-- Gallery -->
            

            <!-- Post Main Content -->
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <p>题目：Normalize.css 和 reset.css 有什么异同？<br>reset.css：让浏览器表现一致  ul(list-style:none)  不管浏览器对某一个元素解释是否一样  自己的项目意愿<br>Normalize.css：让浏览器表现一致  因为所有的浏览器对应ul解释一样的都有点<br>Normalize.css 是一个css库  （font-awesomes.css css的字体图标库）</p>
<p>匿名函数自动执行(function (window) {})(window)<br>避免全局变量名污染,    </p>
<p>    = 一个等号是赋值运算，把右边的值赋给左边的变量，是从右向左计算。<br>预解析时，若变量与函数同名，函数覆盖变量，执行时，变量覆盖函数    </p>
<p>Input type=”submit/image”时</p>
<form action="”(提交的地点)”"></form>

<p>控制文字之间的间距  letter-spacing<br>清除由于换行造成的间距：：：：使用浮动<br>背景不算内容,不占空间<br>font连写时有默认的行高，这时和line-height 分开写会出错,字体大小与行高一起写，不分开<br>针对行级元素，在设定其padding值时，在IE浏览器低版本中（IE8以下），padding的上下没有效果，所以设置display</p>
<p>平时隐藏display：none，当鼠标悬浮时显示display：inline-black，但是这时直接给该元素无效，可以给他的父元素<br>盒子水平居中：<br>        margin:0px  auto;<br>注意：盒子必须是块级元素，且宽度确定。不能是行内快级元素</p>
<p>事件冒泡：点击A时A所在的位置也被点击，可能引起样式问题<br>如何阻止事件冒泡:<br>window.event.cancelBubble=true或者是e.stopPropagation();</p>
<p>只创建一个元素，两种思路:有则删除后添加,无则创建</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div></pre></td><td class="code"><pre><div class="line">//可能遇到的问题</div><div class="line">// 先强调一个问题：在 JavaScript 中，没有块作用域，花括号就是块</div><div class="line">    // if 块中声明的变量成员都存在于执行 if 语句所处的作用域环境</div><div class="line">    // 对于这里的代码：一些比较老的浏览器会先进行函数提升</div><div class="line">    // 这个问题本身就是 JavaScript 某些处理引擎的 bug</div><div class="line">    // 目前绝大多数新的浏览器都解决了这个问题</div><div class="line">    // var condition = true</div><div class="line">    // if (condition) &#123;</div><div class="line">    //   // var foo = &apos;bar&apos;</div><div class="line">    //   function fn1() &#123;</div><div class="line">    //     console.log(&apos;hello&apos;)</div><div class="line">    //   &#125;</div><div class="line">    // &#125; else &#123;</div><div class="line">    //   function fn2() &#123;</div><div class="line">    //     console.log(&apos;world&apos;)</div><div class="line">    //   &#125;</div><div class="line">    // &#125;</div><div class="line"></div><div class="line">    // fn1()</div><div class="line">    // fn2()</div><div class="line"></div><div class="line">    // 对于上面的方式，建议使用函数表达式来处理就可以了</div><div class="line">    // 因为函数表达式没有函数提升</div><div class="line">    var condition = true</div><div class="line">    var fn</div><div class="line">    if (condition) &#123;</div><div class="line">      // var foo = &apos;bar&apos;</div><div class="line">      fn = function () &#123;</div><div class="line">        console.log(&apos;hello&apos;)</div><div class="line">      &#125;</div><div class="line">    &#125; else &#123;</div><div class="line">      fn = function () &#123;</div><div class="line">        console.log(&apos;world&apos;)</div><div class="line">      &#125;</div><div class="line">    &#125;</div><div class="line"></div><div class="line">    fn()</div></pre></td></tr></table></figure>


                
            </div>

            <!-- Comments -->
            
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    


                </div>
            
        </div>
    </div>
</article>

    <!-- Footer -->
    <hr />

<!-- Footer -->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <ul class="list-inline text-center">
                    

                    

                    
                        <li>
                            <a href="https://github.com/klugjo/hexo-theme-clean-blog" target="_blank">
                                <span class="fa-stack fa-lg">
                                    <i class="fa fa-circle fa-stack-2x"></i>
                                    <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                                </span>
                            </a>
                        </li>
                    

                    

                    

                    
                </ul>
                <p class="copyright text-muted">&copy; 2017 John Doe<br></p>
                <p class="copyright text-muted">Original Theme <a target="_blank" href="http://startbootstrap.com/template-overviews/clean-blog/">Clean Blog</a> from <a href="http://startbootstrap.com/" target="_blank">Start Bootstrap</a></p>
                <p class="copyright text-muted">Adapted for <a target="_blank" href="https://hexo.io/">Hexo</a> by <a href="http://www.codeblocq.com/" target="_blank">Jonathan Klughertz</a></p>
            </div>
        </div>
    </div>
</footer>


    <!-- After footer scripts -->
    
<!-- jQuery -->
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>

<!-- Bootstrap -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

<!-- Gallery -->
<script src="//cdnjs.cloudflare.com/ajax/libs/featherlight/1.3.5/featherlight.min.js" type="text/javascript" charset="utf-8"></script>

<!-- Disqus Comments -->



</body>

</html>